package com.bbzn.device.client.dao.process;

import com.bbzn.device.client.dataobject.LeaveForm;
import com.bbzn.device.client.dataobject.MiddleFlowNode;
import java.util.Date;
import java.util.List;

import com.bbzn.device.client.dto.audit.LeaveFormDTO;
import com.bbzn.device.client.dto.process.MiddleFlowNodeDTO;
import org.apache.ibatis.annotations.Param;

public interface MiddleFlowNodeMapper {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(MiddleFlowNode record);

    int insertOrUpdate(MiddleFlowNode record);

    int insertOrUpdateSelective(MiddleFlowNode record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(MiddleFlowNode record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    MiddleFlowNode selectByPrimaryKey(Long id);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(MiddleFlowNode record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(MiddleFlowNode record);

    List<MiddleFlowNode> findByAll(MiddleFlowNode middleFlowNode);

    int updateBatch(List<MiddleFlowNode> list);

    int updateBatchSelective(List<MiddleFlowNode> list);

    int batchInsert(@Param("list") List<MiddleFlowNode> list);

    List<MiddleFlowNode> selectPageBySelective(MiddleFlowNodeDTO record);

    int selectCountBySelective(MiddleFlowNodeDTO record);
}